﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mimoza.Transport;

namespace Mimoza.AgentLayer.Communication
{
    public class RequestPolicySync : TransferObjectGeneric<RequestPolicySync, ReplyPolicySync>
    {
        public RequestPolicySync()
        {
        }

        public RequestPolicySync(Guid lastSyncId, Guid hostId, Guid hostModifiedId)
        {
            LastSyncId = lastSyncId;
            HostId = hostId;
            HostModifiedId = hostModifiedId;
        }

        public Guid LastSyncId
        {
            get { return m_lastSyncId; }
            set { m_lastSyncId = value; }
        }

        public Guid HostId
        {
            get { return m_hostId; }
            set { m_hostId = value; }
        }

        public Guid HostModifiedId
        {
            get { return m_hostModifiedId; }
            set { m_hostModifiedId = value; }
        }

        Guid m_lastSyncId;
        Guid m_hostId;
        Guid m_hostModifiedId;
    }

    public class ReplyPolicySync : TransferObjectGenericReply<ReplyPolicySync>
    {
        public ReplyPolicySync()
        {
        }

        public Guid ServerSyncId
        {
            get { return m_serverSyncId; }
            set { m_serverSyncId = value; }
        }

        public Guid HostModifiedId
        {
            get { return m_hostModifiedId; }
            set { m_hostModifiedId = value; }
        }

        public bool IsSyncRequeried
        {
            get { return m_bSyncRequeried; }
            set { m_bSyncRequeried = value; }
        }

        Guid m_serverSyncId;
        Guid m_hostModifiedId;
        bool m_bSyncRequeried = false;
    }
}
